package Bebetter.Day01;

import java.util.Scanner;

/**
 * @Author:galaxy_yan
 * @Date: 2022/11/20
 * @Time: 20:51
 * @Description
 */
public class B2 {
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        String str1= sc.nextLine();
        String str2=sc.nextLine();

        for (int i = 0; i < str2.length(); i++) {
            str1 = str1.replaceAll(str2.substring(i,i+1),"");
        }
        System.out.println(str1);
    }
}
